﻿@model DotNetUniLodz.Models.Event

@{
    ViewBag.Title = Model.Event_name;
}

<article id="MainArticle">
    <header>
        @Html.ActionLink(Model.Event_name, "Details", "Events", new { id = Model.Event_id }, null)
    </header>
    <div>
        <span>Data: @Model.Event_date.ToShortDateString() @Model.Event_time / gdzie: @Model.Event_where</span>
        <br />
        @Html.Raw(Model.Event_description)
        <footer>
            <a href="@Model.Event_link" target="_blank" class="ArticleRegister2">Strona wydarzenia: @Model.Event_name</a>
        </footer>
    </div>
</article>

<p>
    @if (User.IsInRole("Admin"))
    {
        @Html.ActionLink("Edytuj", "Edit", new { id = Model.Event_id }, new { @class = "SuperLink" })
        @Html.ActionLink("Usuń", "Delete", new { id = Model.Event_id }, new { @class = "SuperLink" })
    }
</p>
